﻿<UserControl x:Class="Vtron.LEDCorrective.Pages.FullScreenCorrective"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="400"
             xmlns:mui="http://firstfloorsoftware.com/ModernUI">
    <UserControl.Resources>
        <Style x:Key="TextBlockStyle" TargetType="TextBlock">
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="Margin" Value="0,0,5,0"/>
            <Setter Property="FontSize" Value="13.333"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>
        <Style x:Key="TextBoxStyle" TargetType="TextBox">
            <Setter Property="Width" Value="350"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,3,0,3"/>
            <Setter Property="BorderThickness" Value="0,0,0,1"/>
            <Setter Property="BorderBrush" Value="Black"/>
            <Setter Property="Background" Value="{x:Null}"/>
        </Style>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Text="分屏校正" Margin="20,20,40,8" FontSize="18"/>
        <Line Grid.Row="1" Height="1" Stretch="Fill" X2="1" Stroke="#cccccc" StrokeDashArray="1, 1"  StrokeThickness="2" Margin="20,0,20,5"/>

        <Grid Grid.Row="2" Margin="20,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <!--<Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid Margin="20,20,0,8">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="校正类型：" FontSize="14" Style="{StaticResource TextBlockStyle}"/>
                        <CheckBox Content="自动校正" Grid.Column="1" IsChecked="True" x:Name="auto_CheckBox" Click="auto_CheckBox_Click"/>
                        <TextBlock Margin="0,0,40,0" HorizontalAlignment="Right" Grid.Column="2">
                             <Hyperlink x:Name="partitionTopological_btn" Click="partitionTopological_btn_Click">分屏拓扑图</Hyperlink>
                        </TextBlock>
                    </Grid>
                    <Line Grid.Row="1" Height="1" Stretch="Fill" X2="1" Stroke="#cccccc" StrokeDashArray="1, 1"  StrokeThickness="2" Margin="20,0,20,5" />
                    <Grid Grid.Row="2" Margin="20,0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Row="0" Grid.Column="0" Text="分区号码：" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>
                        <TextBlock Grid.Row="0" Grid.Column="1" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left" TextAlignment="Left" x:Name="partitionNum_txt"/>
                    </Grid>
                </Grid>-->
                <Grid Grid.Row="1">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <!--<mui:BBCodeBlock Margin="20,5,0,5" BBCode="[b]提示：[/b]在图像数据采集过程中按【ESC】键可暂停调试。"/>-->
                    <StackPanel Orientation="Horizontal" Margin="5" HorizontalAlignment="Center" Grid.Row="1">
                        <Button x:Name="corrective_btn" Content="启动校正" VerticalAlignment="Top" Width="97" Height="26" FontSize="12.333" Click="corrective_btn_Click"/>
                        <!--<Button x:Name="continue_btn" Content="继续校正" VerticalAlignment="Top" Width="97" Height="26" FontSize="12.333" Click="continue_btn_Click" IsEnabled="False" Margin="5,0,0,0"/>-->
                    </StackPanel>
                </Grid>
                <TextBox x:Name="msg_TextBlock" Grid.Row="2" Margin="5,5,10,10" Text="校正信息：" IsReadOnly="True" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"/>
            </Grid>
            <GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  Background="#cccccc" Width="6"/>
            <Grid Grid.Column="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <TextBlock Text="校正流程" Margin="20,20,40,8" FontSize="14"/>
                    <Line Grid.Row="1" Height="1" Stretch="Fill" X2="1" Stroke="#cccccc" StrokeDashArray="1, 1"  StrokeThickness="2" Margin="20,0,20,5" />
                    <Grid Grid.Row="2" Margin="20,0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Row="0" Grid.Column="0" Text="红色LED测量" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>
                        <TextBlock Grid.Row="1" Grid.Column="0" Text="绿色LED测量" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>
                        <TextBlock Grid.Row="2" Grid.Column="0" Text="蓝色LED测量" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>
                        <TextBlock Grid.Row="3" Grid.Column="0" Text="系统生成" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>
                        <TextBlock Grid.Row="4" Grid.Column="0" Text="系统上传" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>
                        <TextBlock Grid.Row="5" Grid.Column="0" Text="系统固化" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>
                        <!--<TextBlock Grid.Row="6" Grid.Column="0" Text="保存到数据库" Style="{StaticResource TextBlockStyle}" Margin="0,10" HorizontalAlignment="Left"/>-->

                        <ProgressBar Grid.Row="0" Grid.Column="1" Minimum="0" Maximum="1" Height="16" IsIndeterminate="True" Margin="0,10" Visibility="Collapsed" x:Name="red_ProBar"/>
                        <ProgressBar Grid.Row="1" Grid.Column="1" Minimum="0" Maximum="1" Height="16" IsIndeterminate="True" Margin="0,10" Visibility="Collapsed" x:Name="green_ProBar"/>
                        <ProgressBar Grid.Row="2" Grid.Column="1" Minimum="0" Maximum="1" Height="16" IsIndeterminate="True" Margin="0,10" Visibility="Collapsed" x:Name="blue_ProBar"/>
                        <ProgressBar Grid.Row="3" Grid.Column="1" Minimum="0" Maximum="1" Height="16" IsIndeterminate="True" Margin="0,10" Visibility="Collapsed" x:Name="build_ProBar"/>
                        <ProgressBar Grid.Row="4" Grid.Column="1" Minimum="0" Maximum="1" Height="16" IsIndeterminate="True" Margin="0,10" Visibility="Collapsed" x:Name="upload_ProBar"/>
                        <ProgressBar Grid.Row="5" Grid.Column="1" Minimum="0" Maximum="1" Height="16" IsIndeterminate="True" Margin="0,10" Visibility="Collapsed" x:Name="hw_ProBar"/>

                        <TextBlock Grid.Row="0" Grid.Column="2" Text="完成" Foreground="Red" Style="{StaticResource TextBlockStyle}" Margin="0,10" Visibility="Collapsed" x:Name="red_txt"/>
                        <TextBlock Grid.Row="1" Grid.Column="2" Text="完成" Foreground="Red" Style="{StaticResource TextBlockStyle}" Margin="0,10" Visibility="Collapsed" x:Name="green_txt"/>
                        <TextBlock Grid.Row="2" Grid.Column="2" Text="完成" Foreground="Red" Style="{StaticResource TextBlockStyle}" Margin="0,10" Visibility="Collapsed" x:Name="blue_txt"/>
                        <TextBlock Grid.Row="3" Grid.Column="2" Text="完成" Foreground="Red" Style="{StaticResource TextBlockStyle}" Margin="0,10" Visibility="Collapsed" x:Name="build_txt"/>
                        <TextBlock Grid.Row="4" Grid.Column="2" Text="完成" Foreground="Red" Style="{StaticResource TextBlockStyle}" Margin="0,10" Visibility="Collapsed" x:Name="upload_txt"/>
                        <TextBlock Grid.Row="5" Grid.Column="2" Text="完成" Foreground="Red" Style="{StaticResource TextBlockStyle}" Margin="0,10" Visibility="Collapsed" x:Name="hw_txt"/>
                    </Grid>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>


